﻿using System.Configuration;

namespace com.hyrentals.webcommon.configuration
{
    public class ContentPackageElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get
            {
                return (string)this["name"];
            }
            set
            {
                this["name"] = value;
            }
        }

        [ConfigurationProperty("value", IsRequired = true)]
        public string Value
        {
            get
            {
                return (string)this["value"];
            }
            set
            {
                this["value"] = value;
            }
        }

        [ConfigurationProperty("tag", IsRequired = true)]
        public string Tag
        {
            get
            {
                return (string)this["tag"];
            }
            set
            {
                this["tag"] = value;
            }
        }

        [ConfigurationProperty("path", IsRequired = true)]
        public string Path
        {
            get
            {
                return (string)this["path"];
            }
            set
            {
                this["path"] = value;
            }
        }

        [ConfigurationProperty("charset", IsRequired = true)]
        public string Charset
        {
            get
            {
                return (string)this["charset"];
            }
            set
            {
                this["charset"] = value;
            }
        }

        [ConfigurationProperty("isClientPackage", IsRequired = true)]
        public bool IsClientPackage
        {
            get
            {
                return (bool)this["isClientPackage"];
            }
            set
            {
                this["isClientPackage"] = value;
            }
        }

        [ConfigurationProperty("cdnServer", IsRequired = true)]
        public string CDNServer
        {
            get
            {
                return (string)this["cdnServer"];
            }
            set
            {
                this["cdnServer"] = value;
            }
        }
    }
}
